//*************************************************************************************
//* 作    者： zouhunter
//* 创建时间： 2021-10-02 12:14:46
//* 描    述： 

//* ************************************************************************************
using System;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;

[ExecuteInEditMode]
public class ToggleShowBehaviour : UnityEngine.MonoBehaviour {
    [SerializeField]
    protected bool m_show;
    [SerializeField]
    protected GameObject[] m_refs;
#if UNITY_EDITOR
    void OnEnable()
    {
        if(!Application.isPlaying)
        {
            for (int i = 0; i < m_refs?.Length; i++)
            {
                m_refs[i]?.SetActive(m_show);
            }
        }
    }
#endif
}
